package com.googlecode.animator.controller
{
	import com.googlecode.animator.model.ProjectSettingsProxy;
	
	import org.puremvc.as3.interfaces.INotification;

	public class DeleteObject3DCommand extends BaseCommand
	{
		override public function execute(notification:INotification):void
		{
			var objectID:String = notification.getBody() as String;
				
			settings.scene.removeChildByName(objectID);
						
			settings.deleteObject3D(objectID);
			
			settings.selectedObject3D = null;
		}
		
	}
}